package com.iwomy.secureplat.platform.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;

/**
 * 设备事件报表
 *
 * @author pig
 * @date 2023-12-29 15:16:04
 */
@Data
@TableName("device_event_report")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "设备事件报表")
public class DeviceEventReportEntity extends Model<DeviceEventReportEntity> {


	/**
	* ID
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="ID")
    private Long id;

	/**
	* 单位id
	*/
    @Schema(description="单位id")
    private Long deptId;

	/**
	* 正常状态
	*/
    @Schema(description="正常状态")
    private Integer normal;

	/**
	* 故障
	*/
    @Schema(description="故障")
    private Integer fault;

	/**
	* 报警
	*/
    @Schema(description="报警")
    private Integer alarm;

	/**
	* 年
	*/
    @Schema(description="年")
    private Integer year;

	/**
	* 月
	*/
    @Schema(description="月")
    private Integer month;

	/**
	* 日
	*/
    @Schema(description="日")
    private Integer day;

	/**
	* 创建时间
	*/
	@TableField(fill = FieldFill.INSERT)
    @Schema(description="创建时间")
    private LocalDateTime createTime;

	/**
	* 租户id
	*/
    @Schema(description="租户id")
    private Long tenantId;
}